﻿@page
@model AdminUI.Pages.BaseData.VideoPreviewModel
@{
	//视频预览，通过iframe嵌入视频播放页面
    var F = Html.F();
    //var url = Request.Query["url"];
}

@section body{

	@{
		// var type = Model.Video.VideoType;
		// if(type == 6 || type == 7)
		// {
		// 	<iframe width="600" height="400" src="@Model.Video.VideoUrl" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
		// }
		// else
		// {
		// 	<div><video poster="@Model.Video.CoverUrl" controls="true" width="600" height="400"><source src="@Model.Video.VideoUrl" /></video></div>
		// }
		<div><video poster="@Model.Video.CoverUrl" controls="true" width="600" height="400"><source src="@Model.Video.VideoUrl" /></video></div>
	}
}

@section script{
    <script src="https://tv.swlive.cn/js/external-play.js"></script>

}

@section head{

	<style>
		.m {
			width: 960px;
			height: 400px;
			margin-left: auto;
			margin-right: auto;
			margin-top: 100px;
		}
	</style>
}
